package com.web.kftsdk.common.bean;

/**
 *
 * @author xukk
 * @date 2018/5/4
 */
public enum PayStatus implements PayInfo {
    /**
     * 成功
     */
    SUCCESS(900000, "SUCCESS"),
    /**
     * 一般错误
     */
    FAIL(999999, "GENERAL_FAIL");

    private int code;

    private String desc;

    private PayStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    @Override
    public Integer code() {
        return this.code;
    }

    @Override
    public String desc() {
        return this.desc;
    }
}
